//
//  OMTFlowLayoutLabel.h
//  OMTFlowLayoutLabel
//
//  Created by yizhaorong on 2018/9/8.
//

#import <UIKit/UIKit.h>

@class OMTFlowLayoutLabel;
// 代理
@protocol OMTFlowLayoutLabelDelegate <NSObject>

@optional
// 选择标签代理
- (void)flowLayoutLabel:(OMTFlowLayoutLabel *)flowLayoutLabel didSelectLabelAtIndex:(NSInteger)index;

@end

@interface OMTFlowLayoutLabel : UIView
// 标签字体
@property (nonatomic, strong) UIFont *font;
// 标签文字颜色
@property (nonatomic, strong) UIColor *textColor;
// 标签使用的背景图片
@property (nonatomic, strong) UIImage *backgroundImage;
// 标签背景色
@property (nonatomic, strong) UIColor *backgroundColor;
// 标签行高
@property (nonatomic, assign) CGFloat labelHeight;
// 最大显示行数
@property (nonatomic, assign) NSInteger maxRow;
// 数据
@property (nonatomic, strong) NSMutableArray *datas;
// 代理
@property (nonatomic, weak) id<OMTFlowLayoutLabelDelegate> delegate;
// 选择回调函数
@property (nonatomic, copy) void(^didSelectLabelAtIndexBlock)(OMTFlowLayoutLabel *flowLayoutLabel, NSInteger index);
// 重新加载数据
- (void)reloadData;

@end
